//
//  BBReawardRecordTableViewCell.m
//  BlockBrowser
//
//  Created by Mac on 2018/4/18.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "BBReawardRecordTableViewCell.h"

@interface  BBReawardRecordTableViewCell()

@end
@implementation BBReawardRecordTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configSubView];
    }
    return self;
}
+ (CGFloat)cellHeight{
    return 50;
}
#pragma mark --subView
- (void)configSubView{
    self.backgroundColor = [BBThemeColorManger manger].backGroundColor;
    
    self.titleLable = [[STLabel alloc] initWithFrame:CGRectMake(15, 0, 300, 25)
                                                     text:@" "
                                                textColor:[BBThemeColorManger manger].firstTextColor
                                                     font:15
                                              isSizetoFit:NO
                                            textAlignment:NSTextAlignmentLeft];
    [self addSubview:self.titleLable];
    
    self.timeLable = [[STLabel alloc] initWithFrame:CGRectMake(15, self.titleLable.bottom, 300, 25)
                                                text:@" "
                                           textColor:SecendTextColor
                                                font:13
                                         isSizetoFit:NO
                                       textAlignment:NSTextAlignmentLeft];
    [self addSubview:self.timeLable];
    
    self.moneyLable = [[STLabel alloc] initWithFrame:CGRectMake(15, self.titleLable.bottom, 300, 25)
                                               text:@" "
                                          textColor:FlatYellow
                                               font:18
                                        isSizetoFit:NO
                                      textAlignment:NSTextAlignmentRight];
    self.moneyLable.right = UIScreenWidth - 15;
    self.moneyLable.centerY = [[self class] cellHeight]/2;
    [self addSubview:self.moneyLable];
}
@end
